package com.zhang.gateway.feign.fallback;


import com.zhang.gateway.feign.AuthRemote;
import com.zhang.gateway.feign.model.KingHoodResponseVO;
import com.zhang.gateway.feign.model.authority.GetUserReqDTO;
import com.zhang.gateway.feign.model.authority.UserResDTO;
import org.springframework.stereotype.Component;
import reactor.core.publisher.Mono;

/**
 * description
 *
 * @author zhangFanJun
 * @date 2023-12-12 15:35
 **/
@Component
public class AuthRemoteFallback implements AuthRemote {

    @Override
    public KingHoodResponseVO<UserResDTO> getUser(GetUserReqDTO in) {
        return KingHoodResponseVO.fallback();
    }

    @Override
    public Mono<KingHoodResponseVO<UserResDTO>> getUserMono(GetUserReqDTO in) {
        return Mono.just(KingHoodResponseVO.fallback());
    }
}
